/*
 * Created by JFormDesigner on Sat Mar 05 13:30:14 ART 2011
 */

package ar.com.visualAORE.view.panel;

import java.awt.*;
import java.awt.Dialog.ModalExclusionType;
import java.beans.*;
import java.util.*;
import javax.swing.*;

/**
 * @author Brainrain
 */
public class ProgressBarDialog extends JFrame implements Runnable{
	public ProgressBarDialog() {
		initComponents();
	}

	public ProgressBarDialog(Dialog owner) {
		initComponents();
	}

	private void progressBar1PropertyChange(PropertyChangeEvent e) {
		// TODO add your code here
	}

	private void initComponents() {
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		ResourceBundle bundle = ResourceBundle.getBundle("locale");
		label1 = new JLabel();

		//======== this ========
		setTitle(bundle.getString("this.title"));
		setVisible(true);
		Container contentPane = getContentPane();
		contentPane.setLayout(new FlowLayout());

		//---- label1 ----
		label1.setIcon(new ImageIcon(getClass().getResource("/icons/progress_bar.gif")));
		label1.setText(bundle.getString("label1.text"));
		label1.setHorizontalAlignment(SwingConstants.CENTER);
		contentPane.add(label1);
		pack();
		setLocationRelativeTo(getOwner());
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	private JLabel label1;
	// JFormDesigner - End of variables declaration  //GEN-END:variables

	/* (non-Javadoc)
	 * @see java.lang.Runnable#run()
	 */
	@Override
	public void run() {
		// TODO Auto-generated method stub
		new ProgressBarDialog();
	}

	/* (non-Javadoc)
	 * @see java.lang.Runnable#run()
	 */
}
